<html xmlns:th="https://www.thymeleaf.org">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>员工管理</title>
  <link href="../../css/style.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" language="JavaScript1.2"
          src="../../js/stm31.js"></script>
  <script>
    function windowOpen(theURL, winName, features, width, hight, scrollbars, top, left) {
      var parameter = "top=" + top + ",left=" + left + ",width=" + width + ",height=" + hight;
      if (scrollbars == "no") {
        parameter += ",scrollbars=no";
      } else {
        parameter += ",scrollbars=yes";
      }
      window.open(theURL, winName, parameter);
    }

    function xiugai() {
      alert("修改成功！！！");
    }
  </script>
  <SCRIPT language=JavaScript type=text/JavaScript>

    function selectAllByChk(chk, checkbox) {
      var size = checkbox.length;
      if (size == null)
        checkbox.checked = chk.checked;
      else {
        for (i = 0; i < checkbox.length; i++) {
          checkbox[i].checked = chk.checked;
        }
      }
    }

  </SCRIPT>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form th:action="@{/personnel/update}" method="post">
  <center>

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="25" align="center" valign="bottom" class="td06">
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="2%" valign="middle" background="../../images/bg_03.gif">&nbsp;</td>
              <td width="2%" valign="middle" background="../../images/bg_03.gif"><img
                      src="../../images/main_28.gif" width="9" height="9" align="absmiddle"></td>
              <td height="30" valign="middle" background="../../images/bg_03.gif">
                <div align="left"><font color="#FFFFFF">员工修改</font></div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <br>
    <table width="95%" border="0" cellpadding="0" cellspacing="0" class="td_page">
      <tr>
        <input type="text" name="ID" th:value="${users.ID}" style="display: none"/>
        <td width="10%" height="30" align="left">员工编码</td>
        <td width="40%" height="30">[[${users.ID}]]</td>
        <td width="10%" align="left">&nbsp;</td>
        <td width="40%">&nbsp;</td>
      </tr>
      <tr>
        <td width="10%" height="30" align="left">用户姓名</td>
        <td width="40%" height="30"><input required name="nickname" type="text" class="input" style="width:95% "
                                           th:value="${users.nickname}">
        </td>
        <td width="10%" align="left">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</td>
        <td width="40%">
          <select name="sex" size="1" class="box" style="width:95%">
            <option value="男" th:selected="${users.sex=='男'}">男</option>
            <option value="女" th:selected="${users.sex=='女'}">女</option>
          </select>
        </td>
      </tr>
      <tr>
        <td width="10%" height="30" align="left">登陆帐号</td>
        <td width="40%" height="30"><input required name="username" type="text" class="input" style="width:95% "
                                           th:value="${users.username}"></td>
        <td width="10%" align="left">登陆密码</td>
        <td width="40%" valign="middle"><input required name="password" type="password" class="input"
                                               style="width:95% "
                                               th:value="${users.password}">
        </td>
      </tr>
      <tr>
        <td width="10%" height="30" align="left"> 所属部门</td>
        <td width="40%" height="30"><font>
          <select name="logoncount" size="1" class="box" style="width:95%">
              <option th:each="department:${departments}" th:selected="${department.ID==users.logoncount}" th:value="${department.ID}">
                [[${department.depname}]]
              </option>
          </select>
        </font></td>
        <td width="10%" align="left"> 职 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务</td>
        <td width="40%" valign="middle">
          <select name="mobile" size="1" class="box" style="width:95%">
            <option th:each="user_dutyDao:${user_dutyDaos}" th:selected="${user_dutyDao.ID==users.mobile}" th:value="${user_dutyDao.ID}">
              [[${user_dutyDao.name}]]
            </option>
          </select>
        </td>
      </tr>
      <!-- <tr>
        <td width="10%" height="30" align="left"> 直属上级</td>
        <td width="40%" height="30"><font>
          <select name="fldSex" size="1" class="box" style="width:95%">
            <option value="人事部经理" selected>人事部经理 </option>
            <option value="人事部主任">人事部主任 </option>
          </select>
        </font></td>
        <td width="10%" align="left"> 内部邮件</td>
        <td width="40%" valign="middle"><input name="queryName" type="text" class="input" style="width:95% " value="zhangsan@163.com">
        </td>
      </tr> -->
      <tr>
        <td width="10%" height="30" align="left"> 外部邮件</td>
        <td width="40%" height="30"><font>
          <input name="email" type="text" class="input" style="width:95% " th:value="${users.email}">
        </font></td>
        <td width="10%" align="left">移动电话</td>
        <td width="40%" valign="middle"><input name="phone" type="text" class="input" style="width:95% "
                                               th:value="${users.phone}">
        </td>
      </tr>
      <tr>
        <td width="10%" height="30" align="left">家庭电话</td>
        <td width="40%" height="30"><font>
          <input name="homephone" type="text" class="input" style="width:95% " th:value="${users.homephone}">
        </font></td>
        <td width="10%" align="left">办公电话</td>
        <td width="40%" valign="middle"><input name="workphone" type="text" class="input" style="width:95% "
                                               th:value="${users.workphone}">
        </td>
      </tr>
      <tr>
        <td width="10%" height="30" align="left">传真号码</td>
        <td width="40%" height="30"><font>
          <input name="fax" type="text" class="input" style="width:95% " th:value="${users.fax}">
        </font></td>
        <td width="10%" align="left">MSN</td>
        <td width="40%" valign="middle"><input name="MSN" type="text" class="input" style="width:95% "
                                               th:value="${users.MSN}">
        </td>
      </tr>
      <tr>
        <td width="10%" height="30" align="left"> 生日</td>
        <td width="40%" height="30"><font>
          <input name="birthday" type="date" class="input" style="width:95% " th:value="${users.birthday}">
        </font></td>
        <td width="10%" align="left"> 个人主页</td>
        <td width="40%" valign="middle"><input name="httpaddress" type="text" class="input" style="width:95% "
                                               th:value="${users.httpaddress}">
        </td>
      </tr>
      <tr>
        <td height="30" colspan="4" align="left"><font>&nbsp; </font>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="10%">通讯地址</td>
              <td><font>
                <input name="address" type="text" class="input" style="width:98% "
                       th:value="${users.address} ">
              </font></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td colspan="4" align="left">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="10%">备注</td>
              <td><textarea name="content" rows="5" class="box"
                            style="width:98% ">[[${users.content}]]</textarea>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <br>
    <table width="95%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="right" class="td_page">
          <div>
            <input name="Submit" type="submit" class="buttonface02" onClick="xiugai()" value="  修改  ">
            &nbsp;
            <input name="Submit" type="reset" class="buttonface02" value="  重置  "> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="/personnel/select">返回上一页</a>
            &nbsp;&nbsp;&nbsp;&nbsp;
          </div>
        </td>
      </tr>
    </table>
  </center>
</form>
</body>
</html>

